package com.rent.writeoff.vo;

import lombok.Data;
import java.math.BigDecimal;

/**
 * 核销统计VO（线程内部使用）
 */
@Data
public class WriteOffStatisticVO {
    private int count = 0;
    private BigDecimal principal = BigDecimal.ZERO;
    private BigDecimal interest = BigDecimal.ZERO;

    public void addCount(int num) {
        this.count += num;
    }

    public void addPrincipal(BigDecimal amount) {
        this.principal = this.principal.add(amount);
    }

    public void addInterest(BigDecimal amount) {
        this.interest = this.interest.add(amount);
    }
}
